.kdjl {
  width: 100vw;
  height: 100vh;
  background-color: #f2f2f2;
  overflow-y: auto;
}

/* 顶部导航 */
.kdjl-top {
  width: 100%;
  height: 40px;
  background-color: #fff;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.kdjl-top-left {
  width: 20px;
  height: 20px;
  margin-left: 15px;
  cursor: pointer;
}

.kdjl-top-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  font-weight: 500;
  color: #333;
}

/* 标签页 */
.kdjl-tabs {
  display: flex;
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab-item.active {
  color: #1890ff;
  font-weight: 500;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: #1890ff;
}

/* 患者信息 */
.patient-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  padding: 12px 15px;
  margin-bottom: 10px;
}

.patient-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.patient-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.patient-id {
  font-size: 14px;
  color: #999;
}

.patient-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.patient-switch:hover {
  background-color: #f5f5f5;
}

.switch-icon {
  font-size: 16px;
}

.switch-text {
  font-size: 14px;
  color: #1890ff;
}

/* 订单列表 */
.order-list {
  padding: 0 15px;
}

.order-card {
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.order-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #1890ff;
  border-radius: 4px 0 0 4px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.order-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  flex: 1;
  margin-right: 12px;
  line-height: 1.4;
}

.status-tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-pending {
  background-color: #fff7e6;
  color: #fa8c16;
  border: 1px solid #ffd591;
}

.status-approved {
  background-color: #e6f7ff;
  color: #1890ff;
  border: 1px solid #91d5ff;
}

.status-rejected {
  background-color: #fff2f0;
  color: #ff4d4f;
  border: 1px solid #ffccc7;
}

.status-cancelled {
  background-color: #f5f5f5;
  color: #999;
  border: 1px solid #d9d9d9;
}

.order-details {
  margin-bottom: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-size: 14px;
  color: #666;
}

.detail-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.action-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.cancel-btn {
  background-color: #f5f5f5;
  color: #666;
}

.cancel-btn:hover {
  background-color: #e6e6e6;
}

.pay-btn {
  background-color: #1890ff;
  color: #fff;
}

.pay-btn:hover {
  background-color: #40a9ff;
}

/* 模态框样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background-color: #fff;
  width: 100%;
  max-width: 100%;
  border-radius: 16px 16px 0 0;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.patient-list {
  flex: 1;
  padding: 8px 0;
  max-height: 200px;
  overflow-y: auto;
}

.patient-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f8f8f8;
}

.patient-item:hover {
  background-color: #f8f8f8;
}

.patient-item.selected {
  background-color: #e6f7ff;
}

.patient-item .patient-name {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

.patient-item .patient-id {
  font-size: 14px;
  color: #999;
}
